package cn.itcast.day02.demo;

public class text01 {
    public static void main(String[] args) {

      /*  int[] array = {15,25,35};
        System.out.println(array[0]);
        System.out.println(array[1]);
        //获取数组长度
        int len = array.length;
        System.out.println(len);*/
      /*studengt stu = new studengt();
        System.out.println(stu.age);
        System.out.println(stu.name);
        System.out.println("==========");
        stu.age = 18;
        stu.name = "杜浩";
        System.out.println(stu.age);
        System.out.println(stu.name);*/

     /* phone one = new phone();
        method(one);
        System.out.println("=========");
        one.brand = "apple";
        one.color ="远峰蓝";
        one.price = 4999;
        method(one);
        System.out.println("==========");
        one.call("乔布斯");
        one.sendMessage();*/
        person one = new person();
        one.name = "mark";
        one.setAge(20);
        one.getAge();
        one.show();
    }

    public static void method(phone param){
        System.out.println(param.brand);
        System.out.println(param.color);
        System.out.println(param.price);
    }

}
